﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace XiongSJ.Framework.Common
{
    /// <summary>
    /// 通用返回实体类
    /// </summary>
    public class BaseResponse
    {
        /// <summary>
        /// 状态 200:成功,500:服务器错误,400:网络请求失败或页面不存在,300:页面请求对象为空
        /// </summary>
        public string status { get; set; }

        /// <summary>
        /// 返回消息
        /// </summary>
        public string msg { get; set; }

    }

    /// <summary>
    /// 状态枚举类
    /// </summary>

    public enum status
    {
        [Description("登录成功")]
        Success=200,
        [Description("服务器内部错误")]
        Error = 500,
        [Description("网络请求失败或页面不存在")]
        NotFile = 400,
        [Description("页面请求对象为空")]
        ObjNull = 300
    }
}
